package com.atguigu.srb.core;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableDiscoveryClient
@EnableTransactionManagement //启用声明式事务管理
//@ComponentScan(basePackages = {"com.atguigu.srb.base","com.atguigu.srb.core"})
//自定义扫描组件的包
@ComponentScan(basePackages = {"com.atguigu.srb"})
public class SrbCoreApplication {
    public static void main(String[] args) {
        SpringApplication.run(SrbCoreApplication.class,args);
    }
}
